Fix builds on Mingw

Building streams from a wchar_t* argument is an MSVC extension.