encode everything