Fix compile error resulting from outdated to_lower usage.

Rust recently changed its string API, requiring conversion from str to an ascii str and back in order to do to_lower. Ugly, but that's what they did.