download github source files with correct encoding

fixes #247