Generalise output directory
Use unicodecsv instead