fix server encoding from redis on py3

need to investigate further to make consistent choices for
shelve/redis/memory across py2/3