Escape strings when serializing, limit recursion in serializer