Form builder file upload URL - filename encoding

Description

In the case where a form builder submission contains file URL with the following file name:
nestlé®_pantone_280c_logo_l.jpg

the generated file link stored in excel spreadsheet is
www.example.com/file/L2Zvcm1CdWlsZGVyU3RvcmFnZVByb3ZpZGVyL0JGRUE0RjM5LUZCNzktNEM2Mi05Q0QxQkVGMjA0RTE5NzQ2LzdGOUIwQTFFLTY2NUMtNDk4My05QTQ2NDkwQjYxQUFFOTY1L25lc3RsZT+uX3BhbnRvbmVfMjgwY19sb2dvX2wuanBn/

while the generated link when viewing it in preside admin is
www.example.com/file/L2Zvcm1CdWlsZGVyU3RvcmFnZVByb3ZpZGVyL0JGRUE0RjM5LUZCNzktNEM2Mi05Q0QxQkVGMjA0RTE5NzQ2LzdGOUIwQTFFLTY2NUMtNDk4My05QTQ2NDkwQjYxQUFFOTY1L25lc3RsZcyBwq5fcGFudG9uZV8yODBjX2xvZ29fbC5qcGc=/

The correct URL should be the URL displayed in preside admin. This is caused by ToBase64 and ToString functions in PlainStoredFileRouteHandler not specifying the encoding type, which is defaulted to the encoding of the page on which the function is called.

Ensuring both function uses the same encoding (e.g. UTF-8) fixes the error

Environment

None

Assignee

Unassigned

Reporter

Choon Tat Thum

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Low
Configure