Now handles System.Uri as a string.