bug fix in OSX support functions:

a Unichar is 2 bytes wide, so a char* cannot be simply cast to a
Unichar*
Replace it with proper conversion to UTF8
Merge pull request #226 from devernay/develop-osx

bug fix in OSX support functions: