Sanitize key name for cache.

Fixes #25