Write newlines and open files as binary