discogs web sources script fails on utf-8 names with spaces

I use discogs.src from v2.42 installer, without any modification.
If i request artist with any non-latin characters in its name starting with small names or with mixed case ( like гости+из+будущего ), script fails with message "Error connecting to server: www.discogs.com". It happens because of all words with non-latin characters in discogs urls should start with capital letter like this one: Гости+Из+Будущего. Is it possible to fix case of text retrieved from user?
Thanks ahead.

You can edit the script and change

But it will only capitalize if your artist tag is filled, not if you type it in the search box.