Apply philippe.goetz patch

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/names-truncate-udp-6949@43390 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb