@Override
    public void endElement(String uri, String localName, String name) throws SAXException {
        // TODO: enable this, but some parsers currently
        // trip it
        //assert verifyEndElement(name);
        super.endElement(uri, localName, name);
    }
Outputs the replacement for an invalid character. Subclasses can
override this method to use a custom replacement.

@param output where the replacement is written to
@throws SAXException if the replacement could not be written
tika-core/src/main/java/org/apache/tika/sax/SafeContentHandler.java