 
   import PathHelpers
 
-  if :file.native_name_encoding == :utf8 do
+  if :file.native_name_encoding() == :utf8 do
     test "wildcard with UTF-8" do
       File.mkdir_p(tmp_path("héllò"))
       assert Path.wildcard(tmp_path("héllò")) == [tmp_path("héllò")]
     after
-      File.rm_rf tmp_path("héllò")
+      File.rm_rf(tmp_path("héllò"))
     end
   end
 

    assert Path.wildcard(tmp_path("wildcard/**/*"), match_dot: true) == [hello, world]
    assert Path.wildcard(tmp_path("wildcard/?hello/world"), match_dot: true) == [world]
  after
    File.rm_rf tmp_path("wildcard")
  end

  test "wildcard/2 raises on null byte" do

    assert Path.join("/foo", "bar") == "/foo/bar"
    assert Path.join("~", "foo") == "~/foo"

    assert Path.join("", "bar") == "bar"
    assert Path.join("bar", "") == "bar"
    assert Path.join("", "/bar") == "bar"
    assert Path.join("/bar", "") == "/bar"

