Check URI is valid using SoupURI instead of strcmp.