fix deprecated css_class attrib
fix/update encoding config