Extended ASCII characters input issue, window title bar issue.
Fixed a charset issue, wchar_t is string character as encoded in UCS2 in MinGW.