encoding config support