Added encoding, backspace support.