Carry over replaceXMLEntities