Move dump method to 1.8 and use encoding from allocate