You may need a UTF-8 locale to run some Ruby applications. For example we have found that Ruby Spec needs such a locale.
export LANG=en_US.UTF-8
sudo apt-get install -y locales sudo locale-gen en_US.UTF-8 export LANG=en_US.UTF-8