escape double quotes in serialization