Fix build with rust master

&str is no longer indexable