Add support file name with whitespace for ADD and COPY command

this commit fixes #8318 
Can we get some testcases that test the non-JSON array format too?