The autocorrect for:
String.new.force_encoding('Ascii')
gave me:
# BAD - raises FrozenError (can't modify frozen String)
+''.force_encoding('Ascii')
Instead it should add parenthesis
# GOOD
(+'').force_encoding('Ascii')
Please check if there are other affected methods... I haven't tested but imagine you are already handling bang (!) methods properly.