Mitigating Shortcuts in Language Models with Soft Label Encoding