Switching between a bytes fmt and str fmt argument can cause a BytesWarning when running Python with the -b command line argument.