set the filemode of the file we're writing to to binary