Sanitize coupon code names before checking/applying. Closes #2934.