Fixing UTF error in CSV output