What worked for me on Mac OS X Sierra is adding the following into my ~/.bash_profile
file:
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
Then I reloaded the bash profile with: source ~/.bash_profile
For those who use zsh shell, you must add those lines to your ~/.zshrc
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
Then I reload the bash profile with: source ~/.zshrc