fix digitValue() returned 0 instead of -1 for invalid ucs4 characters