Length -> Buffer Length, fix for file contains Chinese chars.
Merge pull request #78 from kebot/fix_char

Length -> Buffer Length, fix for file contains Chinese chars.