Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532