patch from sage project: make unicode_safe safer
Authored by: efiring 2009-08-10
Parent: [r7441]
Child: [r7443]