You can't win, normally I'd have used a \foo{..} interface but as
plain was asked for I went very minimal and used a \par terminated
string:-)
Change \par to \relax in the definition of \x then use
\def\y{\x#1\relax} and you can use \y{plain\ TeX} :-)
David