Bug-fix for export to CSV in IE