Make the API of mem_cd_iconv more useful.