Wouldn't escapeshellarg do this as well?