Refine script, URL encoding.