Handle Malformed URIs Bug

They should be tested if they are standalone functions. I didn't write them as such.