This function replaces escaped `\r\n` occurences into normal its view: `\r\n`. Make this a function, to let it be reusable for other DSM implementations. Change-Id: Ica737df259fbf136b9a6855bc9439cbe005be6c1