raise an exception with python3 if the headers are not encodable in latin1