Work around a bug in Dulwich 0.9.5+

See https://github.com/jelmer/dulwich/issues/144

Thanks to Klaus Alexander Seistrup. Fixes #89.
Version 0.4.6