Avoid calling iconv_close multiple times.