Steps to replicate the issue:
from pywikibot.tools.chars import url2string
url2string('El%20Ni%C3%B1o', ['ascii', 'utf-8'])`What happens?:
Traceback (most recent call last):
File "<pyshell#82>", line 1, in <module>
url2string('/El%20Ni%C3%B1o/', ['ascii', 'utf-8'])
File "D:\pwb\GIT\core\pywikibot\tools\chars.py", line 130, in url2string
return t.decode(enc)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)What should have happened instead?:
'El Niño' should be given