generate better fallback titles from filenames