Render byte[] properly in the cli

We recently noticed that the cli doesn't render byte[] properly (reported in #1663). This patch fixes that.
@dain We can do several things about it. Either stick to platform's default encoding, or use the encoding jvm argument (-Dfile.encoding), or use a proper charset detection library of a given byte[] (https://code.google.com/p/juniversalchardet/). 3rd option seems the ideal but the first two are easier to implement. What do you think?