@@ -855,7 +855,7 @@ writeMedia :: FilePath -> MediaBag -> FilePath -> PandocIO ()
855855writeMedia dir mediabag subpath = do
856856 -- we join and split to convert a/b/c to a\b\c on Windows;
857857 -- in zip containers all paths use /
858− let fullpath = dir </> normalise subpath
858+ let fullpath = dir </> unEscapeString (normalise subpath)
859859 let mbcontents = lookupMedia subpath mediabag
860860 case mbcontents of
861861 Nothing -> throwError $ PandocResourceNotFound subpath