DBpedia and SPARQL: Query with accent marks does not work

So I’ve tried a lot of different things and have been searching for a solution, but haven’t had any luck…

My SPARQL query is

PREFIX dbp: <http://dbpedia.org/resource/&gt;
PREFIX dbpedia2: <http://dbpedia.org/property/&gt;

SELECT ?currentclub
dbp:“.$term.” dbpedia2:currentclub ?currentclub .
FILTER langMatches(lang(?currentclub), ‘en’)

When the $term equals something with an accent mark in the name it gets all screwed up and no results are given. I tried a bunch of different things, but just can’t seem to get any of them to work. Hoping for some help.