Fixed UTF8 bug when converting from NSString to char *.