Fix CSV output (according to rfc 4180)

Fixes issue #23