Now it doesn't fail if req is python2's str
It's used in some akamai videos (for example for theplatform.com).