Some string escaping to enable deserialization without loosing new lines.