improve searching for charset efficiency a bit