encodeToString
Serializes and encodes the given value to string using serializer retrieved from the reified type parameter.
Throws
in case of any encoding-specific error
IllegalArgumentException
if the encoded input does not comply format's specification