fix special characters in custom serializers