Tests whether the given string contains newlines and thus should be encoded as a multiline string if possible.
bool isMultilineString(String str) => str.contains(tomlNewlinePattern);