Fix two possible AsciiErrors when an exception occurs

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
Merge pull request #2620 from savoirfairelinux/8.0-http-unicode

Fix two possible UnicodeDecodeError when an exception occurs