Fix unicode issues with Twisted.