Fix issue caused by unicode in document