When a UUID is decoded from PostgreSQL as text, make sure we turn it to binary representation for consistency.