Fix write-binary-data Gambit 4.6.9 regression