fixed a bug with iconv string conversion