Enclose argument to "cd" in quotes
Use fnameescape() instead