bug 7821 follow-up: escaping {} in regexp