CsvWriter improved to support more than string types during encoding