fixed improper usage of iconv function