It also throws an error when we put an uppercase character in a URL:
I’m not 100% sure of URLs specs, but maybe the code should lowercase the string before triggering the script?