The command to change the current working directory doesn't like seeing "\0" in the parameter string. So, you have to do some manipulation, or use the proper routines that take care of it for you.
See above for some solutions.
Thanks.
Cheers,
Scott.