misc: remove dead code; add encode to URL feature