Remove trailing characters from things that look like RSIDs.