Added UTF-8 conversion to csv file generator.