UNDERTOW-98 ServletPrintWriter.write() causing IndexOutOfBoundsException