An attempt to fix https://github.com/awslabs/aws-sdk-ios-samples/issues/4.

N.B. The fix covers only the listing of S3 buckets. Same problem is present elsewhere.