Fix a bug with payloads of type string.  

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