Ensuring CSV export is send as attachment, with proper file name and mime type