represent hashes in canonical form as string