fixes UnicodeEncodeError when AWS_DEFAULT_REGION is set for a region different from us-east-1