The FDA never required a uniform width, so the 10-digit code is ambiguous: 12345-678-90 could be read as 5-3-2 or, if the hyphens are stripped, as several other things. This ambiguity is the entire reason the 11-digit billing form exists.
Always convert from the hyphenated 10-digit code, never from the digits alone. Once the hyphens are gone the original segmentation cannot be recovered reliably.