gui.widgets.console: clear unicode_buffer when len >= 4
gui.widgets.console: validate keys before adding to unicode_buffer

This, along with the previos commit, helps with a bug that GermainZ
reported:  If you press CTRL+Left Arrow when using ranger on python3,
you become unable to type new letter keys because ranger tries to
interpret all the input as a unicode sequence.