CSV files don't do newlines, because a newline marks 'end of record'
You'll always have to replace the newline with something else before exporting, and replace it back after importing.
That is why real databases export to SQL files, which don't have that limitation.