[Title] Fixed build error and wchar_t to char logic