Fixed UTF-8 and nil pointer access in textinfo_hpricot