gsub to correct s3 server