fix rest of head character encode tags