Then, there are countries with regulations against fictitious self-employment. They’ll happily decide that your foreign contractor has been a full time employee, with all the protections of their local law. They’ll also hand you an invoice for all the missing social security and whatever other payments, plus a fine for misreporting.
Payroll companies are, sadly, the way to go here.