Good news, I was struggling with it for some time. I will try this too.
Can it be added to the standard libraries? If it is so easy, it would make sense to have it added centrally, rather than everybody doing it separately.
Btw. I chose the simple way. When acquire the xml files, I check them (i also read thousands) and replace us-ascii to utf-8 in the encoding. Since a us-ascii character set is a subset of utf-8, it works.