IOError is raised on Windows