Sanitize headers

Add the capability to sanitize headers.

(This is needed for Wsapi, which would like to keep the Authorization header out of errbit)