Added 'b' option to file mode because windows-stuff