Fixes for csv import

I fixed some issues with Firefox and Chrome in the CSV import, mainly due to different mime types.