Inconsistent behavior dealing with the escaping backslash