fixed regression in processing non-utf8 encoded user input

see RM ticket 3212