Support old versions of curl in acceptance tests

Certain older versions of curl don't support the --data-urlencode flag.
Because the only thing we use this flag for is to encode spaces in
queries, it's sufficient to use --data and simply remove the spaces.