Escape unsafe layout variables using Layout::eSet (regs #4312)