Fixing some Amazon S3 signature issues