Change ByteArrayOutputStream's toString function to match openJDK's expectation

As documented here:
http://docs.oracle.com/javase/7/docs/api/java/io/ByteArrayOutputStream.html#toString%28%29

The normal toString() of ByteArrayOutputStream should be overridden to generate a string with the default encoding.