basic case_tolerant rewrite (multi-platform)