Handle case matches on special characters (extra boost).

This is a fix for #3263.

cc @JeffryBooher