test convert encoding