Update encoding of request