Ensure the environment contains only encoded strings.

Fixes #222.