Fix S3 Issue #14470 (https://issues.jenkins-ci.org/browse/JENKINS-14470) by stealing patch from https://github.com/longlho/s3-plugin/commit/4b9fc910941f02fd37cf0527a7640ce631ef28c1.