linkify: Replicate Core's url decoration function

Relevant tests: https://github.com/Attamusc/be.net/commit/2aa677b502d8548ac77cd013478f3dcebc266724

**Review**

- [x] @behance/javascript