Added URI handling functions for constructing relative URIs.