encoding error fix
finalize url/cost