added URLEncoder.encode to properly escape CGI encoded arguments so they are safely...