Add sanitization callback, using core sanitize_key function. Fixes #40