when adding, encodeURIComponent on JS, URLDecode.decode on Java; no encoding when retrieving. optimize in context menu of treeitem: only check if url opened in existing tab when there's exactly 1 item selected