Changed sha digest for negative cache keys to hexdigest to avoid unicode incompatibility.