Slug generation for short links.
Generates random URL-safe slugs or validates custom keys.
Generates a random slug of the given length.
Validates a custom key.
Uses a character set that excludes ambiguous characters (0, O, l, I, 1) for readability.
Keys must be 1-255 characters, URL-safe (alphanumeric, hyphens, underscores).