ECMS-6238: Cannot upload file whose name contains [ character in Activity Composer

Fix description:
- Make uploading file and creating folder in Activity Composer consistent with the same method in Content Explorer
Merge commit '800bb9c804e8892d06fa0ecf5b4a1c6d3d18ce97' into HEAD