convenience for fromHex.