Fix octal number literals.

Signed-off-by: Jelmer Vernooĳ <jelmer@samba.org>
Fix another potential XSS issue, and add test for the previous one.
Merge branch 'master' of git://github.com/jelmer/dulwich