complicated example using iconv and request, using parsing charset from response header