Added a helper class for handling invalid XML characters (used in Log4JXmlEventLayoutRenderer)