serializer for memcached