Fix matching of brackets in \characters