add encoding convertion