Fix issues

proper encoding of the json, require ssl to prevent EOF error, dont URI escape

1. json object wasn't encoded correctly. it left semicolons and commas which grepdata didn't like. so I used CGI::encode instead.

2. without setting use_ssl, an EOFError would be thrown

3. grepdata returns a 204, not 200