call the get_bytes_from_wsgi function with self.environ, string 'QUERY_STRING' and empty string as arguments, substitute the return value for raw_query_string.
raw_query_string = get_bytes_from_wsgi ( self . environ , 'QUERY_STRING' , '' )