Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0
My guess is that you're setting LANG to a value
that is inconsistent with some other part of
your locale (e.g., LC_CTYPE, LC_COLLATE). You
can test this guess by running the command 'locale'.
What does that command output?