fix unicode error handling in csv_data_from_file