allow nil input
follow latest spec's registered header keys

* JWS draft9
* JWE draft9