Fixing an issue with the handler that calculates the Content-MD5 header for S3 operations

Fixes https://github.com/aws/aws-cli/issues/230.