Improved HashID serialization.