Prevent codecs.escape_encode() from raising SystemError when an empty bytestring is passed.