fix s3 putObject to use buffer