hgweb: fill in content-type and content-length as native strings
This lets me actually get a capabilities response from hgweb over http.
Differential Revision: https://phab.mercurial-scm.org/D1087