Platform-dependent version of escapeshellarg().
Given the target platform, return an appropriately-escaped
string. The target platform may be omitted for args that
are /known/ to be for the local machine.
Use raw to get an unquoted version of the escaped arg.
Notice that you can't add quotes later until you know the platform.