escape \r in multiline strings