better autoescaping for macros