Fixed a bug with the -e flag and added ability to replace certain undesirable characters in file names with others.