Fixed get_url_params_except function to work with not ascii contain quer...

There are an error in urlencode if query contains non ascii strings.