remove ; from restrictedChars
minor changes to make it work with mod_python
adapt to work with mod_wsgi