fix: correctly validate file URIs with streams
Changes how file URIs are validated: handles URIs with streamwrappers correctly
Testing instructions
- create a file upload field
- upload a file with a filename containing spaces
Closes #3591986
Edited by Wolfgang Ziegler