Properly URL-encode URLs in sourcemaps.

Closes #1306
Merge remote-tracking branch 'origin/stable' into stable