Fix exit from unicode mode