Trims trailing whitespace from files.