Fix test for JRuby
Add UTF-8 encoding comment to lib files [ci skip]
Fix deprecated .rubocop.yml syntax [ci skip]
Small readability tweak