Just to loop back after taking a look at this in another thread, the apostrophe ' being added via the exportData utility method is doing some intentional sanitizing.
'
exportData
However, you can use Papa Parse and the more general downloadFile method
downloadFile