fix https://github.com/owncloud/core/issues/6825
Merge pull request #7525 from owncloud/fix_S3string

fix https://github.com/owncloud/core/issues/6825