The Function toEmailSafeString(String projectName) does not do anything.
Pull request already created:
https://github.com/jenkinsci/jenkins/pull/4185