Some language layouts seem to set high bits in the modifier. I haven't seen an explanation for these modifiers so strip them out to make those languages (e.g. hebrew) work.