Adding splitext_permissive to common, with unit tests