Fix message trimming that resulted in trailing escape backslashes
Only trim to an even number of trailing backslashes