handle cli file encodings with iconv