Take a hard line against what can be encoded as keys

Closes #10.