check for encoded uri too

this is a workaround to maintain backwards compatibility.
request.get_full_path in django returns a unicode string, not a url.