Handle errors from iconv