SPARQL: try preserving the type of string literals when applying functions that return string