Doing automatic encoding for response html data