where {string} is filtered to only have chars and numbers, using something like safeKey = key.replace(/[^a-z0-9._-]/gi, '_').lower()