Fix some globalization and string performance issues

This another big attempt to fix a lot of globalization and string performance issues. It's not going to be the last for sure, because I found a lot of areas where we can improve while doing this, so there's still hope to have a more responsive application all over the place. ^_^