handle backslash escaping