Convert line endings to CRLF upon writing

When a file has been reformatted line endings within that file are
converted to CRLF (dos2unix)