Fix Redis cache item encoding

Will this break if you have ',' in header values? Can we just use JSON here?