Fixed some encoded characters and bad tagnames