Discogs error when search terms contain punctuation

I looked around and saw a few posts regarding this issue, but I still don't quite understand what the underlying problem is. Whenever I perform a search using Tag Sources > discogs which contains any punctuation, I get the following error:

Once the punctuation is removed, the search executes with no issues.

If the Discogs API is unable to handle punctuation, can't Mp3tag just remove it when the search is performed, or is it more complicated than that?

Thank you!