Fix Redis cache item encoding.