[Bug 8598] New: msvcrt file IO functions do not handle unicode properly in text mode