It's a bit annoying and lame but not really a huge deal.
For example, you can just open an fstream like so:
std::ofstream file(convertUTF8ToFStreamPath(pathname).c_str());
Where convertUTF8ToFStreamPath converts from UTF-8 to the Windows wide encoding (UTF-16?)