This is a *massive* performance improvement; some longer emails that took 45+ seconds to load before now take < 1 second, at the cost of a completely rewritten URL detector. This means some URLs that were detected before (e.g. anything starting with "www", emails without "mailto:", etc.) are now not detected, though support for detecting them could be reinstated in the future. Fixes #4816.