Fixes WFE-1260. Correctly relativize URIs if the base URI does not end
with /.