Strip trailing whitespace from header fields