Fix headers end detection for DKIM.