Try using the HTML Entity value. For a * it is:
*
Put that anywhere in your HTML, and it would produce an asterix. Should work inside your document.write.
HTH
Edit: I forgot the entity automatically gets parsed into an astrisk

, sorry it is:
[&][#][4][2][;]
but without the [ and ]. All as one word.