Remove trailing whitespace and some tab characters.