Added function mc_build_filename() for processing URL-paths as well