Improve logging of discarded bytes to be more parse-friendly.