CTS2RestClient was broken because the underlying Spring URL libraries
are broken, and don't properly encode # in all cases.  Hacked in a
workaround.