Handle Malformed URIs Bug

@hoffmabc This function doesn't look good as it is written, but it's not a critical issue.