Standardize the method for replacing suffixes

Fixes #756 .
Update a few occurrences by
* searching for `""\.join\(\((\w+)\[:-len\(suffix\)\], "(\w+)"\)\)` and
* replacing by `self._suffix_replace(\1, suffix, "\2")`

Other places were updated manually.