File: Fix issue with opening files in read/write mode on Windows