make has_bad_header rfc compliant-ish