changed character substitution for OCR results

updated code to change _ to 7 for $stats, to fix logging issues (now logs 7 instead of _)