Final commit.
Image upload working fine.
Patched github.js to take encoding as a parameter.