clean encode target