Strip invalid XML characters