fixed unicode error in download_csv
merged from master