Add solution for Mac terminal MOSH locale encoding issues.