Add encoding comments
Simplify range eql condition
Avoid using Range#size as it's unavailable on 1.9