PrettyPrintWriter.writeText escapes some characters but not all. If the text for example
contains vertical tabulators (0B), the generated xml is invalid.
XML1.0 only allows control characters 09, 0A, 0D. All others should cause an exception.
The PrettyPrintWriter simply writes them to the output stream (at least it should perform escaping).