More concise normalize_keys.