Encoding post request data