handle unicode error