changed s3 endpoint to correctly handle both https and buckets with dots in them