Print the actual encoding error message
Don't null out fields and reset packet on wrong stream