Fix failed uploads when display name of file brough from external apps includes separator or path-separator characters