added check for utf_len in inp_get_char
Merge pull request #120 from pasis/next

added check for utf_len in inp_get_char