Always strip trailing non-alphanumeric characters.