Add a text (\r\n) mode for DOS.  Before CRs where added to all files
when written. Now we try to guess text mode and do the right thing.