Sanitizes a key name to ensure it is safe for use in scripting.
The original key name.
A sanitized, script-safe key name.
Sanitizes a key name to ensure it is safe for use in scripting.