Factor our hex/base64 into codec.js, and now use them from buffer.js
for toString('base64') and toString('hex'), along with pushing utf8/utf16/ascii
encoding into simplistic Codec instances.