Fix encoding + http request timeout.