encode URI params.

This fixes the error of an malformed URL when a :param has empty spaces.

For example, having /api/:param/ with param="a b" will generate the request
"GET /api/a b  HTTP/1.1" and the target application will read as url the value
"/api/a".
Merge pull request #80 from darkrho/encode-uri-params

encode URI params.