Remove result_type hardcoding and URLencode query
Import utils for URLencode