[data.yaml] Multi-line scalars mangled on serialisation
The `data.yaml` module incorrectly serializes multi-line strings by replacing newline characters with the literal 'n' instead of the intended backslash-n escape sequence. This is due to an incorrect use of `String.replaceAll` which treats the replacement as a regular expression. The fix involves using `Matcher.quoteReplacement` or `String.replace` to ensure proper escaping.