Use the correct encoding in IO.readlines, IO#gets, etc