Joel writes script for male prostitute film “For a Few Dollars More” unaware that title was in use