S2Member Protected Download Links via S3 Amazon break when file has spaces

Hi S2Member Team,

We’re running into a serious issue where all Protected download links pointing to a file located in our S3 Bucket throw errors as soon as they have spaces in the file names. For example:

https://mysite.com/?s2member_file_download=Are%20You%20Washed%20in%20The%20Blood%20-%20Tabs%20and%20Practice%20Tracks%20(3).zip

Throws the following error:

<Message>
The request signature we calculated does not match the signature you provided. Check your key and signing method.
</Message>

We’ve quadruple checked all our Amazon S3 settings, but files with regular file names like “example.zip” are served without issues. It’s a bizarre issue and would love to get this resolved since renaming 300+ file names is not really an option :frowning:

Thanks in advance!