Converts spreadsheet to CSV