Tolerate malformed URIs in data without crashing