Fix severity mapping with rubocop 0.21+

offense.severity is now an instance of Rubocop::Cop::Severity, so we need to convert it to a string first.
This should be fully backwards compatible.