I had a problem with the trademark character that was throwing this error.
The trademark character translates to \"! in UTF-8, so it was the open-ended quotation symbol that was throwing the error. So I did this:
.gsub!("\"!", "")
And then I tried creating my CSV object and it worked fine.