make format string of encodecfg