optional param encoding was not working in read-csv-file