use module name for Haskell
sanitize a package name in Java for directory names