Fix Windows file handling.