9827 bug fix

When a string has both backslash and new line in it sfYaml wrongly encodes it
leaving the backslashes unencoded. This is fix on both parsing and dumping side.

http://trac.symfony-project.org/ticket/9827