Normalize data coming from vim
Minor unicode related fixes
When closing Gate, wipe the buffer