fix bug with GridFsStorage.writeString()