spree/spree — pull request #4149 by dpritchett (2013-12-30 00:14:51+00:00)
Title: Escape spaces in generated shipment tracking URLs

# What
Tracking numbers returned by remote shipment labeling APIs (i.e. USPS/Endicia) sometimes include spaces. Passing these straight through to a URL results in unexpected behavior when the tracking URL makes its way to the edges of the app (e.g. [the shipment mailer template](https://github.com/spree/spree/blob/dcce1c3b7c4f57fcb21ed0ac3b1982de53b56c70/core/app/views/spree/shipment_mailer/shipped_email.text.erb#L14)). Why not `URI#escape` the tracking number before passing it on as a link?

## Before
Tracking Information: 1111 2222 3333
Tracking Link: https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=1111 2222 3333

## After
Tracking Information: 1111 2222 3333
Tracking Link: https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=1111%202222%203333