fetchtitle: fix mixed HTML escapes and non-Unicode encoding causes encoding errors