'Encode the name of a header (eg \'Content-Type\') to an ISO-8859-1 encoded
bytestring if required.
@param name: A HTTP header name
@type name: L{unicode} or L{bytes}
@return: C{name}, encoded if required, lowercased
@rtype: L{bytes}'

def _encodeName(self, name):

    if isinstance(name, unicode):
        return name.lower().encode('iso-8859-1')
    return name.lower()
