Strip trailing whitespace for many filetypes.