Possible fix for blank node uri generation

Not extensively tested.