objstr: Make sure that bytes are indexed as bytes, not as unicode.

Fixes #795.