Fixed #22971 -- Properly parsed RFC 2388 encoded headers

Thanks homm for the report and Cea Stapleton for patch improvements.