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