fix for an UnicodeEncodeError in production when extracting the CSV