fix the charset encoding issue of tree