git: fix up gitignore
parser: fix unicode surrogate pairs and performance optimization

Binary match context optimizations revealed by bin_opt_info.