add str() for instagram redirect since WSGI middleware chokes on unicode redirect URLs