Fix error message generated for kFoo names.

Fixes #46.