rem: name = prettyName[1]; 
add: name = decodeURIComponent(prettyName[1]); 
context: function openLocalCalendar() {    const nsIFilePicker = Components.interfaces.nsIFilePicker;    var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);    fp.init(window, gCalendarBundle.getString("Open"), nsIFilePicker.modeOpen);    fp.appendFilter(gCalendarBundle.getString("filterCalendar"), "*.ics");    fp.appendFilters(nsIFilePicker.filterAll);     if (fp.show() != nsIFilePicker.returnOK) {        return;    }	        var url = fp.fileURL.spec;    var calMgr = getCalendarManager();    var composite = getDisplayComposite();    var openCalendar = calMgr.createCalendar("ics", makeURL(url));    calMgr.registerCalendar(openCalendar);         // Strip ".ics" from filename for use as calendar name, taken from calendarCreation.js    var fullPathRegex = new RegExp("([^/:]+)[.]ics$");    var prettyName = url.match(fullPathRegex);    var name;            if (prettyName && prettyName.length >= 1) {        name = prettyName[1];    } else {        name = gCalendarBundle.getString("untitledCalendarName");    }            openCalendar.name = name;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9cd5bc0b50c8de9795662e484cc1db7a6500c2aa/calendar.js/clean/calendar/resources/content/calendar.js