update rubocop
fix rubocop error
add missing encoding
Merge pull request #22 from ehaselwanter/rubocop-updates

update and fix rubocop