Fixes #67 : Throw an exception if the url is malformed