Used %i()
Remove no-longer-necessary # encoding: UTF-8 comments
Replaced uses of Hash[] with uses of .to_h