escapeNameIfNecessary
Wraps string between backticks, but only if it does not already match NAME_PATTERN.
Return
either string itself, or a backtick-escaped copy of it
Wraps string between backticks, but only if it does not already match NAME_PATTERN.
either string itself, or a backtick-escaped copy of it