Minor changes to UniqueCharCount class
Compatibility with Java v1.6