Handle more balanced cruft.

We were already doing () as a special case.

This solves IPv6 URLs as well as other edge cases.