Sometimes my backspace key gives weird characters to a terminal. To reset it, do:

stty erase ‘^H’

Simple command that will save the day! ;)