fix csv export

* Current rails doesn't like the old syntax
* Fix `&quot;` appearing in csv output