* fix buggy computing length of string containing non-ASCII characters
Merge pull request #1 from ghostoy/master

Fix a bug when calculating the length of string containing non-ASCII characters