bugfix: use locale for toLowerCase() - code didn't work with e.g. Turkish locale