Fix exit from unicode mode
Merge pull request #2965 from imurchie/isaac-unicodefix

Fix exit from unicode mode