Fix potential locale issues with toUpperCase/toLowerCase
Fix potential locale issues with toUpperCase/toLowerCase

See http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html

stallman-cui/EvalEx,uklimaschewski/EvalEx,uklimaschewski/EvalEx