use [`require('sdk/url').isValidURI`](https://github.com/mozilla/addon-sdk/blob/master/lib/sdk/url.js#L238) here instead.