swap html codes for extended ascii chars