fetchtitle: handles trailing dot in hostname