Render byte[] properly in the cli

We recently noticed that the cli doesn't render byte[] properly (reported in #1663). This patch fixes that.
That library seems awesome.  We could use that to do detection on the first chunk, and if it finds a charset, we use that.  If it doesn't, we output hex.

Let's see what @martint and @electrum think?