fix url encoding and strip non utf-8 characters in titles.