Fixes a bug where couchdb didn't JSON-encode the startkey