Don't assume that the suffixes consist of 3 characters
Currently, the classifications list only contains 3-character suffixes,
but magic numbers should still be avoided and there's really no reason
not to use the actual size of the suffix.
Also, since Qt 5.10 there's QString::chopped().
- GnuPG-bug-id: T6168