Fix ruby pry crash occuring by inputting non-ascii unicode character.