Added testcase for #262 - rest client does not encode query parameters.