added support for iconv charset conversion