Remove trailing whitespace on buffer save.