Added generate_csv_response and now uses unicodecsv for unicode-safe CSV read/writes.