agentHost: Preserve authority identity through URI serialization (#331722)