Fixed bug preventing the input of multibyte characters