Replace homemade equivalent of tolower(3) by towlower(3)
This will help in the futur making diff -i works with multibyte