Handle invalid URIs in view