Formatting tags again


In 2017 a change was made to change all tags so they have only lowercase letters. This was not good for my site. I did ask for help in where that change was made. No answer. So I am asking again.

Which exact file is stripping the capital letters from the tags? I am only interested in the file that does the work, because I will make the changes to the code myself.