Ensure ids can be url encoded strings