add xml serializer encode to string