UNDERTOW-111 IndexOutOfBoundsException from ServletPrintWriter.write