fixed multi-byte character bugs
Additional multibyte character fix
Fix granularity in range as well as a few other fixes
Merge pull request #15 from dancingcactus/granularity-fix

Granularity fix