Strip control characters in XML data