debug.py - manually convert string parameters tp unicode and back to string, preventing UniCode conversion errors.