Javascript String toUTF8()
"use hyperloop"/*from w w w . j av a 2s . co m*/ /* Utility. */ String.prototype.toUTF8 = function() { return NSString.stringWithUTF8String('' + this); };