Fixed issue #285: fix encodeURIComponent for admin/menu autocomplete