Encode http request input data used in log