Fix for the "bad character" when doing backspace in chat window

Backspace was printing 'ć' instead of actually backspacing in a chat
window when widechar support was enabled.