Avoiding ByteArrayOutputStream toString(UTF-8) method (not in JME)