Completion crashes on a method having invalid name as UTF-8 · Issue #900 · ruby/irb

Description IRB crashes with the following code: irb(main):001> define_method("a\xff".force_encoding(Encoding::ASCII_8BIT)){} => :"a\xFF" irb(main):002> a/Users/kuwabara.masataka/.rbenv/versions/tr...