Encode and decode hash components correctly, so all signs are allowed in the hash