Hi SaferSephy,
It cause by the apostrophe ', Editor will wraps the url you set by "", if you use two apostrophe in the url, then will generate a wrong html format. Editor do not know what is the format, so it generate the wrong code which is not you need.
some like <a href="a'b'c">google.com</a>, it is a wrong format.
Regards,
Ken