handle iconv exceptions