Fix args appearing when variable names contain %n, etc.

Fixes #340.