Fix strange UnicodeEncodeError in the TreeAdmin.