dashenc: Fix format string generation