rem: var converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"] .createInstance(Ci.nsIScriptableUnicodeConverter); converter.charset = "UTF-8"; var plainOctet = converter.ConvertFromUnicode(plainText); plainOctet += converter.Finish(); return this._decoderRing.encryptString(plainOctet); 
add: var cipherText = null, userCanceled = false;  try { var converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"]. createInstance(Ci.nsIScriptableUnicodeConverter); converter.charset = "UTF-8"; var plainOctet = converter.ConvertFromUnicode(plainText); plainOctet += converter.Finish(); cipherText = this._decoderRing.encryptString(plainOctet); } catch (e) { this.log("Failed to encrypt string. (" + e.name + ")"); if (e.result == Components.results.NS_ERROR_NOT_AVAILABLE) userCanceled = true; }  return [cipherText, userCanceled]; 
context:     _encrypt : function (plainText) {        var converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"]                             .createInstance(Ci.nsIScriptableUnicodeConverter);        converter.charset = "UTF-8";        var plainOctet = converter.ConvertFromUnicode(plainText);        plainOctet += converter.Finish();        return this._decoderRing.encryptString(plainOctet);    },
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/dd6d9e581cd0ced087c774d3132a96b9324754e2/storage-Legacy.js/buggy/toolkit/components/passwordmgr/src/storage-Legacy.js