Remove leading/trailing whitespace in a header value

Fixes #9.