index: Fix IndexEntry to not include name.
Fix octal number literals.
Check for bytes rather than str.
Use bytes literals instead of string literals.