This error is due to your SSH client (PuTTY, Terminal, etc.) attempting to set a specific locale when connecting to the server. Depending on the SSH client you are using there may be a “Set locale environment variables on startup” setting that will need unticking if that is the case or you can solve this manually by adding the following line to the ~ / .bash_profile file on the machine you are connecting from:
export LC_CTYPE=$LANG