add Pathname.write_binary