added haxe.Ucs2 for JS/Flash