detect french file encoding correctly