Newline escape fix

If message contained escaped newline(sent as \\\\\\\\n) then String.replace would result in \\\\\\n when the actual result should be \\\\n, any json message would fail to parse