Rename replace method and arguments.
Handle long titles to avoid errors due to too long filenames.