language changes: no more direct &str indexing, .to_utf16() is deprecated.