Fix example code for tor endpoint parser