urihandler: make _get_uri() return a copy