Migrate to caseless, fixes #1001