refactor: share `encodePackageName` utility function (#1066)
authored by Bjorn Lu and committed by GitHub 1 month ago e74a201a f7d99207