use WWW::Form::UrlEncoded's build_urlencoded