In a malformed .csv file, there is a row of data with extra double quotes, e.g. the last line:
Name,Comment \"Peter\",\"Nice singer\" \"Paul\",\"Love \"folk\" so
If you're not on Ruby 1.9, or just get tired of regexes sometimes, split the string on ,, strip the first/last quotes, replace remaining "s with _s, re-quote, and join with ,.
,
"
_
(We don't always have to worry about efficiency!)