Add http_encoding class and modify some thing