check for fragments in String.pathExtension