Don't know what you did eventually, but better approach for this is to .binary(true) on the FileSink (which we may want to make the default soon)