Should you encounter the error message

need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

for example, when running tmux, you should do following steps to solve the problem that causes it:

  1. uncomment the appropriate locale in the /etc/locale.gen file
  2. run locale-gen

Voila!