This map is already case-insensitive (look at how hphp_string_imap<T> is defined), you don't need to create lc_ext at all here.