Fixed urlencoding for query strings.