Added content type header for CSV as some browsers were adding an HTML extension to the file otherwise.