Use all variables, not only variables with data (via Alan Ruttenberg, https://github.com/egonw/rrdf/issues/18)
Properly return a string for anonymous nodes