helpers(new cleanupCsv() function)

this is based on https://gist.github.com/waptik/795708293e442e3f0ee0c63f40552b78#gistcomment-3735474