Refactor out uri formatter in triplestoreutil