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