what if toURI() returns null?