Unit-tests were failing with old versions of libcurl

The behaviour of the escaping seems to have changed.