Added a new encodeUrl(...) method to encode a url when necessary.
Authored by: keess 2004-06-24
Parent: [r1212]
Child: [r1214]