Minor changes to function fixFileName

Changed semicolon replacement from underscore to a period and added
renaming for A.M. and P.M. strings into am and pm (lowercase).