Safer URLs for subtree downloads and unnamed nodes.

This also fixes a previously unreported bug where moving to a node in
the tree viewer would work, but starting fresh from its URL would fail
due to trailing "...". This is now stripped in `makeSafeForWeb2pyURL()`.