Fixed MinGW builds uses UTF-8 friendly _wfopen(). (#8300)

Amend bbd0a37bd, 40db2ca09
2 files changed