[2.0] Fix list modes being erroneously case sensitive.

Fixes #907 by @Robby-.