Fixed get_url_params_except function to work with not ascii contain query

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

Reviewed at https://reviews.reviewboard.org/r/5722/