making displayed URLs break gracefully

using code by Joe Wicentowski (http://markmail.org/message/ssuj5amh2ywj772m)