[csv] How to check encoding of a CSV file