Before v3, invalid characters were just removed from a string. Now they are replaced with underscore symbol, similarly to sanitization of screenshot and snapshot file names. This mainly affects the test folder names in Artifacts directory path.
Example
Test("2/1") as Name becomes
Test(_2_1_) as NameSanitized