Bugfix for urls with %27 in the url

I discovered a bug in the "augmentSyncLinkTracking" function by accident. I was working in the CMS and added a link to the page "http://en.wikipedia.org/wiki/Domino%27s_Pizza" as content. This resulted in a 500 error. This code change fixes the described problem.