fixed UnicodeDecodeError on tokey computing