Fix s3 putting bug

We are seeing problems while `PUT`ing JSON to S3. It seems the data is getting quite big and the client is complaining about there being no content length.

I thought I would try to set the content length on the client to see if this fixes it. If not it could then be a problem with the client getting GC'd, again.

@gklopper