Duplicate frozen strings before forcing the encoding to prevent a RuntimeError
Merge pull request #376 from bouk/s3-writing-frozen-strings

Duplicate frozen strings before forcing the encoding to prevent a RuntimeError