ensure encoding before parsing
go back to snapshot