modify HttpResponseEncoder