Refactor 1 encoding.rb week4