Strip trailing whitespace on save.