modify Gemfile for encoding