Find bad character script can remove invalid XML characters from OCR