Fixed #22971 -- Properly parsed RFC 2388 encoded headers

Thanks homm for the report.
some brief comment besides just linking to an RFC would be helpful