Fix reading files on windows.