fixed small bug with cp1251.