Fixing iPod nano 3G sound quality issues

After purchasing a used iPod Nano 3G - a glorious little player I used to have in high school - I notied it sounded absolutely *horrible*. First thought - I got scammed. But it was much more interesting than that.