fixed escaping in heuristic compression