fix bug with charset #9