Partial work towards fixing the unicode problem, and adding headers to output CSV files