pi_http: fix HTTP escaping