How do I convert a single byte character into double byte in Javascript?