remove unnecessary encode