Fixed Packages.toValidPackageName