linkify: Replicate Core's url decoration function