Future proof url.parse() for font stack v8 migrations
Future proof url.parse() for font stack v8 migrations

In new versions of Node and browserify `URL.parse()` URL encodes
properties on the resulting object. This has the effect of breaking the
migration script in the browser.

We can decodeURI the path segments we need to compare in a manner that is
backwards and future compatible.

Tested with:
- browserify
- Node 0.10
- IO 3.0

pka/mapbox-gl-style-spec,pka/mapbox-gl-style-spec