Bug while editing links

If you edit a link, white spaces (%20) will be wrongly replaced, or re-replaced, resulting in defective urls.

Steps to reproduce:

  1. Add a word in the rich text editor, mark the word and add a link with whitespaces like
  2. https://virtualcreations.de/error/?last ninja remix
    
  3. Now mark the word, click in link edit and save. Link should be corrupted now.

Also the url live-discovering/conversion seems to be buggy and a bit unpredicable