Fix Unicode decoding handling and add a JSON api for querying against Redis.