It doesn't look to me like the path is getting screwed up...%20 is hex for a space, so the spaces are only being replaced with hex (spaces in file paths can screw things up). My suggestion would be...