Convert UUIDs to Strings before serialization