properly handle legacy agent info (i.e. just the base URI)