Raise URI::InvalidURIError if wrong uri.
Merge pull request #10 from seuros/raiseerror

Raise URI::InvalidURIError if wrong uri.
Consolidate URI extraction. Remove superfluous validity check.