fix delete js encoding