Handle escaped backslash in strings correctly