I cannot reproduce the problem here, the single quotes around the file name should already have fixed that. Also the error message looks incomplete. Is that really the whole message? Which platform is this?
I see that, but I don't get the same error message here when I try a similar script, and the error message from grep is incomplete. It should say something like "file not found" or something.