Spaces are not a problem in values and need no escape. To escape a newline in a value, just indent it appropriately. For example:
myKey this is a multiline string
and the indent on this line indicates that.
It can even be 3 lines long :)
someOtherKey and now this is a separate key/value pair.
Like URLs, new lines and spaces are not allowed in keys.