Agnostically replace path params (i.e. try both string/symbol as hash key).