separator should be delimiter not record separator.
Otherwise newlines are replaces by commas...
Add a test to test delimiter
Merge pull request #660 from uwescience/jwang_fixDelimiter

separator should be delimiter not record separator.