Normalize charset parameter in Content-Type header for S3

Fixes #244, #245