Serializer to make URI serializable for Kotlinx serialization (e.g., JSON).
Deserializes a string into a URI.
Serializes a URI into a string.