[rubocop] Configured rubocop to only check encoding if needed