Fix S3 mock encoding bug
Merge pull request #2443 from danielgtaylor/s3-mock-fix

Fix S3 mock encoding bug