properly handle byte length of unicode string terms
Merge pull request #2 from drd/master

properly handle byte length of unicode string terms