check for illegal variable names

http://www.concrete5.org/index.php?cID=474075&editmode=