Small fix to query string formation.

Change-Id: I98a1e5311da758022b272829200d26bec45a394b