Added escape function

Escapes '(', ')', '[', ']' from the file name that is generated by
compgen.

I tried with with a file called ```bg()[asdf].jpg``` and tab completion works. However if a file was name ```(bg.jpg``` the tab completion will fail, even though the file opens successfully.