Clean up /arvados/v1/../../discovery/v1/ hack before sending request
to server.