Fixes #5706. Allowing parens in URIs if not last character.