Fix a bug where the voteban mask is not updated due to improper handling of case mapping.
Merge branch 'master' into c++11