Add test for encoding of double quotes in ApiClient

Refs Graylog2/graylog2-server#793