Handle NULL bytes in get_components() values (#804)

* Handle NULL bytes in get_components() values

Some old software may generate "bogus" CN with each character preceded
by a NULL.

This is already handled in commonName, but wasn't in get_components()

* review fixes (fix py3 test & avoid unpack/cast)
2 files changed