BZ997415 - It is possible to create package with illegal name.
(cherry picked from commit 1f5ede45426881a5e7537d91fafae76af82a751a)