Moved the BytesEncoder to RedisSerializer.

Closes #16