Encode single quote into &#x27; instead of &apos;

&apos; does not appear in HTML.
http://www.w3.org/TR/xhtml1/#C_16