http: Fix incorrect use of self in param encoding.