Fixed solr query used in security check so that it's possible to have usernames with solr reserved characters