Updated PathWithQueryFormatter to take a slice instead of a String.