remove invalid characters <32 from XML output