Revert to copy of PDFText._escape()