[ruby-core:125083] [Ruby Misc#21960] Improve #backtrace to not confuse terminals