In docker linux, in order to set your default encoding, you need to set your locale via environment variable in your dockerfile
locale -a
C
C.UTF-8
POSIX
apt-get install -y locales
# if you really want to have all locales :)
# apt-get install -y locales-all
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8