Hopefully fix KDM email corruption.

Reported-by: Carsten Kurz
Merge.