How to use Bintray download keys with YUM repos

For basic http authentication to work, it is sometimes required to put the username/password in the URL in the format of:


This is always the case for YUM repositories.

When using Bintray download keys, the username itself contains a '@' character creating a username that looks like: 


In this case, it is required to URL-escape the '@' character and replace it with with '%40', for example download-key-username%40bintray-organization-name