Encoding cp858 is only supported by some iconv variants Gnu iconv only supports it, if configured with "--enable-extra-encodings" (see https://www.gnu.org/software/libiconv/) Maybe drop support or add a configuration check?