private void writeString(String string) throws IOException {
        int max = 65535 / 3;
        int frags = (int) Math.ceil((double) string.length() / max);
        output.writeInt(frags);
        int i = 0;
        while (i < frags) {
            int end = (i < frags - 1) ? (i + 1) * max : string.length();
            output.writeUTF(string.substring(i * max, end));
            i++;
        }
    }
Breaks the string in 21,845 size chunks to not
throw UTFDataFormatException at least in Oracle JDK 8.
tika-core/src/main/java/org/apache/tika/fork/ContentHandlerProxy.java