When I run
gem install
command the gem utility tries to access my home directory. It contains some non-latin char
gem
If you GEM_PATH is set to your user directory, it will still access it. Try changing GEM_HOME and GEM_PATH.