Split long send-keys commands into sub-1024-byte chunks to avoid crashing tmux 1.8