Write 'binary' files, fix for windows machines