Open files not in binary mode for Windows

Resolves https://bugs.launchpad.net/pyflakes/+bug/1397266