urlencode values in query string

The encoding is done via pathname2url

This fixes aws/awscli#314.