Ensure struct fields are properly escaped when injected into AST