More terminal mode fixes to help print unicode chars.