WSGI Middleware providing regular expression replacement