Set binmode on file handle for win32 compatability. Reported by Anthony.