file chooser: get back the line ending change on saving

This was removed by mistake on the refactoring.