protected function filterUriInstance($uri): string
    {
        if ($uri instanceof UriInterface) {
            return (string) $uri;
        }

        if (is_string($uri)) {
            return (string) \One\createUriFromString($uri);
        }

        return '';
    }