Tune extracting heuristic in URL

This should better handle parenteses and
other non-ascii URI corner-cases.