Added support for URIs with parentheses

I've added tests and everything passes, but I'm not sure if I missed anything.