Remove non-ascii and trailing whitespace