Escape non-http public_ids.