Escape unsafe layout variables using Layout::eSet (closes #4315)