new features for str2hex and derivatives