Correctly encode URI segments
Correctly encode URI segments

CGI.escape encodes spaces as `+`s, which is not
correct for paths.

Fixes #28.

ruby-amqp/rabbitmq_http_api_client,ruby-amqp/rabbitmq_http_api_client