Provide protection against invalid URIs.