Reimplement url finding with URI::Find to fix various edge cases