Test encoding. For #292
Merge branch 'master' of github.com:spumko/joi
Cleanup #292