md_collect_marks: Optimize in case of 8-bit encodings by eliminating some branches in the fast path.