Allow to set the encoding when writing the dataframe to csv, before loading infile. It gets an error when the csv contains unicode characters.