fixed a possible bug in httpserver

Refer to "man iconv_open".