Fix text and binary modes not being respected in safe_fopen().
Quick and dirty fix to get CRLF support in edit_line promises on Win.

It should give CRLFs on Windows and have no effect elsewhere.

This is not meant to stay, just to enable working with Windows while a
proper solution is developed.

See Redmine 4733.
Merge branch 'crlf_in_editing_quick_fix'