compat: fix scrolling not clearing some text

Test case was provided by weechat.
compat: fix mouse wheel in utf8 mode

Closes task 87.
Tested with weechat.