handle non word characters in base name