fixed problems with special chars in path

While calling screencapture