Mac - LC_CTYPE

To solve this:
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
Typically appeared when using OS X Lion and ssh to a remote server.

Add the following line to your ~/.bash_profile of OS X:
export LC_CTYPE="en_US.UTF-8"