Fix incorrect wrapping when pasting, etc.
Fix tabs so they aren't represented by spaces.