buildAndEncode

Builds and encodes the query.

Return

URI encoded query.