`%q` is probably going to work better—what if `Realm` has a double quote in it?