Add support for writing a string directly to s3