Increase the buffer sizes

This will reduce the number of problems with unicode characters being sliced
between reads. You can see such slicing in tmux's separator lines: random
question marks appear in the middle of the line.
Fix the split UTF-8 character handling
Fix another jump-out-of-the-scroll-region bug