Fix: Use wide string path names with MSVC only
Changes for supporting UTF8 in windows could not be compiled using mingw. See #17750 (comment 668424)
Edited by Todd
Changes for supporting UTF8 in windows could not be compiled using mingw. See #17750 (comment 668424)