Encoding memcache keys because sdk allows special characters