public ByteArrayBuilder appendUnicode(final int... unicodePoints) {
        if (unicodePoints != null && unicodePoints.length > 0) {
            final String str = new String(unicodePoints, 0, unicodePoints.length);
            try {
                byteArrayOutputStream.write(str.getBytes(charset));
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
        return this;
    }
@param charset The charset to use for string encoding
stroom-util/src/main/java/stroom/util/string/ByteArrayBuilder.java