fixed encoding for text in javascript strings

http://yetanotherforum.net/forum/posts/t16983-Jquery-Special-Char-Bug-spotted#post63499