Undefined function sc_sanitize2filename()

This error appears in ScriptCase in an application that makes use of the Export > Email functionality, which attaches a PDF export of the shown data to an email:
Fatal error: Uncaught Error: Call to undefined function sc_sanitize2filename() in D:\NetMake\v9-php82\wwwroot\scriptcase\app<myproject>_lib\lib\php\nm_api.php: 333
ScriptCase version: 9.13.020