some extra safety for byte2hex