Further things for #204

* Use `encodeComponent` as per @Zren recommendation
* Use `repo.default_branch` to eventually be redirected to `blob/master` url

NOTE: May need default_branch to be encoded I think... have to commit this to check out my other repo and test

Applies to #200