Use as_bytes() for string indexing.
Use as_bytes() for indexing also in tests.
Merge pull request #21 from zsiciarz/master

Use as_bytes() for string indexing.