fix encoding things and typos