New functions setencoding and setencodingv in data.table.R