Hi Morgan,
Thanks for the explanation and your work for OSX. I realized I have already strayed into the right place. 
-
After some more reserch, I found my original change does not work in some cases. Could you please change the fix to inserting the following two lines?
AppleLocale=`defaults read -g AppleLocale`
export LANG=${AppleLocale%@*}.UTF-8 -
I run this on OSX 10.11, and it should on 10.9 and 10.10 either.