[ci skip] Partial patch for #2284

The issue description is about update_string(), which
I'm not sure if can be fixed at all. This patch only
addresses protect_identifiers().
2 files changed