Fix UnicodeDecodeError (fix #113)