Apply end_of_line before save

This will fix #18