fixing utf-8 console support for OS X