fix for queries with uris as subjects

When I executed a query with an RDF document that had a URI as the subject it threw an error complaining about URI not having a 'startswith' method.  So I'm first converting all subjects to strings.