fix preview issue when uploading a file with parentheses