def fix_long_windows_path(path: str) -> bytes:
    """Work around for NT system's 256 character path limit
    https://stackoverflow.com/questions/1880321/why-does-the-260-character-path-length-limit-exist-in-windows
    
    Arguments:
        path {str} -- path to the file that needs to be NT long path capable
    
    Returns:
        [bytes] -- path that with \\\\?\\ prefixed with all forward slashes (/) replaced by backward slash (\\) and encoded via utf-8
    """
    long_path = "\\\\?\\" + path.replace("/", "\\")
    return long_path.encode()