HH-40589 fail-proof headers decoding