Serialization: exclude nulls with `encodeToString` method while `encodeDefaults = true

How is it possible to exclude nulls with encodeToString method while encodeDefaults = true ? Looks like a popular topic .