Fix mix header decryption.

Fixes #2176 and adds better logging for #2441 if it doesn't outright fix it.