Issue #53: Catch URI syntax exceptions

There are cases in which valid URLs are not valid URIs