Fix BytesWarning when running with "python3 -bb"