diff --git a/js/generator-template.js b/js/generator-template.js
index 134f460..d5dccb8 100644
--- a/js/generator-template.js
+++ b/js/generator-template.js
@@ -66,9 +66,10 @@ function theme_none_tree_folder(name, folderTitle, folderContent, titleLevel)
function theme_none_tree_file(name, title, webkitRelativePath, audioFileID)
{
+ const encUri=encodeURI(webkitRelativePath);
return `
-
- ${name}
+
+ ${title}
Cache
Download
@@ -180,9 +181,10 @@ function theme_materialize_light_tree_folder(name, folderTitle, folderContent, t
function theme_materialize_light_tree_file(name, title, webkitRelativePath, audioFileID)
{
+ const encUri=encodeURI(webkitRelativePath);
return `
-
- ${name}
+
+ ${title}
cached
file_download
@@ -294,9 +296,10 @@ function theme_materialize_dark_tree_folder(name, folderTitle, folderContent, ti
function theme_materialize_dark_tree_file(name, title, webkitRelativePath, audioFileID)
{
+ const encUri=encodeURI(webkitRelativePath);
return `
-
- ${name}
+
+ ${title}
cached
file_download