custom UriConverter to check for invalid URIs