Raise URI::InvalidURIError to the caller