revert to toHexString.