test shell readlines encoding