fix Chinese directory bug in term