use S3Client::encodeKey(), fixes #8325