Force empty query parameters to be encoded as objects. Closes #122