Typo.
Properly coerce data to buffer in sync/write-file [fixes #109]