Escape replacement macros in preferences