change how utf-8 encoding errors are cleaned up in for OCR text for display