When constructing the URI base, simplify the lookup for the trailing /