longToHexString: allow negative values.