up version.
Encode headers.