escape the key within the s3 bucket before constructing the url

important for keys with spaces, etc