Issue #53: Catch URI syntax exceptions

There are cases in which valid URLs are not valid URIs
Merge pull request #99 from ninniuz/53_catch_uri_syntax_exceptions

Issue #53: Catch URI syntax exceptions