fix exponents and other unicode issues