Fix for open on Windows (apparenty, default is text mode)