Revert "Call std::tolower in a way that should works on all supported compilers"

This reverts commit be97d844fd5647a1c19cc1d5e6e2242655ff974c.
I should have tested it first instead of only compiling it.