common: Minor change of hex2str to allow for embedded nul.