Within URL::addEscapeChars:
String legalChars (isParameter ? "_-.~"
: ",$_-.*!'");
Seems to be backwards AFAICS.
, and $ are legal in a query string parameter, but not in the URL path. See e.g. https://stackoverflow.com/a/2375597/125997
Thanks,
Dan
