Drpal 8 Contact forms – uploaded file name issues

How can I remove/replace special characters to the uploaded file name. Because the submitted email to the recipient with the link to the uploaded file, does not work if the is a special chars (#) in the file name. e.g. sample#.pdf

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed