You must encode hyperlinks for the URL , so all characters are converted to the actual ASCII format and do not contain any (X) HTML entities.
For C # use HttpUtility.UrlEncode, for PHP urlencode, for JavaScript encodeURI, etc. Finding the right method for the language you are using does not have to be so complicated.