Yeah right now the FileSystem API only supports plaintext content of files. One way to do this could be to do a to-from base64 encoding for binary files, or to use the upcoming Blob
API. Do you think the base64-based API could work for your use case?