• Replaces all forbidden chars in a file name with utf8 equivalents.

    Note escaping is not perfectly reversible (e.g. trim space at end). Therefore we don't provide an 'unescape'. Try to be able to live without it. So far it worked, but not sure if this will be always the case.

    Parameters

    • fileName: string

    Returns string