Redesigned HashID serialization to be more uniform.