middleware to encode url for valid urls
middleware to encode url for valid urls

Fixes an issue when consuming the API with url that contains accented characters.
ampproject/ampbench,ampproject/ampbench,ampproject/ampbench,ampproject/ampbench