dirmngr: Simplify truncation of long strings in debug code.