import re


def fix_filename(filename: str) -> str:
    """
    Remove special characters from filename.

    :param filename: filename
    :return: fixed filename
    """

    filename = re.sub(r'[/]', '_', filename)

    return re.sub(r'[^\d\w.-]', '', filename)