Fix bug with redis values. Redis values will be encoded as JSON from now on.