This restores the ability to write encoding names in uppercase like "UTF-8", which worked in Python 2.