Locale data that contains regex metacharacters are now properly escaped.

Closes bug #1039270.
3 files changed