Use correct exceptions for URI component validation.