Don't allow variable names to contain }

Fixes #1.