Functions that help with uris.