char_to_utf8 function for cross-platform char* -> wchar_t*