Filter the URI whether it's a String or another Object.