Solve 9325
Solve 1100
Simplify 1100
Reduce code by replacing length with size
Update .rubocop.yml

4647e8ded58496cdf24af5410058afd5caf0a7d6
Add encoding comments to .new.rb

Since Ruby 1.9 also need it.
Solve 2010