You do not need to avoid this at all.
Just write
document.title = "hello β goodbye";
(and make sure your file is UTF8)
If you really want to avoid this, you can use the Javsacript escape code: "\u2192"
Objects are used only in the HTML source; you cannot use them in regular strings. (Except innerHTML , which is the source of HTML)
source share