Fixed bug with encrypted files not having all periods replaced with underscores.