User current locale when converting to uppercase string.

Fixes #1570