A few buffer fixes among other things
Fixed invalid ?? sequences