Write files in binary mode to avoid writing CRLFs on windows

It's pretty annoying to have all LF lines switch to CRLF when using the new -f switch. Given I don't know ruby at all, I am not sure if this has other implications regarding file encoding and such, but I would imagine writing out the bytes as is is alright.