This should also be supported for utf8 files (i.e. utf8 formated csv.)

You could also support utf16 etc., but that would be overkill!  (Unless it fell out trivially.)