Fix encoding problems that end as GitHub errors

These errors are being confused as GitHub errors, and because of that
issues don't get closed after a successful rebase.