ats2-postiats: use Pathname.write