update idirs in text/encoding