Fix #37 of windows-chewing-tsf: invalid characters are committed when pre-edit buffer is full.