MB-100: fix URL encoding in view queries

Change-Id: Ib27b66671d60adfbf6e9ded499974ddd23a2db4b
Reviewed-on: http://review.couchbase.org/24219
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>