Ensure valid filenames
Basic machine learning OCR implementation