Fix crash in tidytool.py when processing non-ASCII Robot file