Use 'encodeURIComponent' instead of 'escape' as it is deprecated.

Partial fix for #97. I still have to enable the tests which will take some changes to `TestRunner` and `NodeVTT`. I'll move `NodeVTT` over to its new repo before we start that though.