Retrieves title better and ensures a valid file name