Handle Malformed URIs Bug

ok updated. take a look.