Here is the script that I have used

```
Encoding.name_list.sort.each do |enc|
 begin
   p enc
   broken_str.force_encoding(enc) 
   broken_str.split(/\r\n|\r|\n/)
 rescue Exception => e
  p e.class
 end
  p "===================================="
end
```