fixing more memcache encoding bugs