Replace the fragment marker used for unsupported filename characters with an underscore and cover upload metadata and static-file downloads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>