Fixed typo in test_encoded_substr