fix safari unicode bug