fix encoding param