Fix path with contained query

Query inside path is not allowed, it should be under
separate key :query.

Putting query inside path leads to error:

URI::InvalidComponentError Exception: bad
component(expected absolute path component):
/v1.1/images/detail?limit=20

Caused most probably by this comparison:
URI::parser.regexp[:ABS_PATH] !~ v
So this might be { attribute => URI::encode(query) }.