Rework relativeuri() to always produce a relative URI