I'm sure you never had to run into this... it's happening with some mod changes I'm making where the game can lag while typing (search box).
Basically, I believe it appends multiple \b characters at once, and because \b\b\b != \b it appends them to the input instead of deleting the last character, adding corrupted □ characters.
This area of the code I believe