Set the string style in the encoded YAML. This is a function that
decides for each string the type of YAML string to output.
WARNING: You must ensure that special strings (like
"yes"/
"no"/
"null"/
"1234") are not
encoded with the
Plain style, because then they will be decoded
as boolean, null or numeric values. You can use
isSpecialString
to detect them.
By default, strings are encoded as follows: