Maps an arbitrary key to a safe, stable filename component.
static String sanitizeKey(String key) => CommandHistoryBuffer.sanitizeKey(key);