Add debugging for journal encoding