def filePathToSafeString(filePath):
    """
    Returns string representation of a given filepath safe for a single filename usage

    >>> filePathToSafeString('C:/Windows/system32')
    'C__Windows_system32'
    """
    retVal = filePath.replace('/', '_').replace('\\', '_')
    retVal = retVal.replace(' ', '_').replace(':', '_')
    return retVal
