Fixed filename allowed character issues when uploading or deleting files through API.