Format and change line feed to LF