Created is_token_char function.
Changed header class's behavior that it now rejects invalid characters and now does not trim whitespace for the name and value.

The new non-trimming behavior consequently makes the class reject those header names which have leading and trailing whitespace, and leading and trailing whitespace in the header value is preserved.