Added error conditions to unicodedata