replace wrongly used escape sequence in strings