update to detect unicode error