Changed the ZAP client API to encode the query parameters. Fixes #1.