CSV import delimiter detection broken
When uploading a CSV file to import, the delimiter used in the CSV is supposed to be auto-detected.
File.read seems to not be used properly: The third parameter may not be a string.
This is rescued in the block and therefore, the user does not see the error. However, the auto-detection does not work.
Attached is a simple patch that fixes this.