diff --git a/src/Data/Url.hs b/src/Data/Url.hs
--- a/src/Data/Url.hs
+++ b/src/Data/Url.hs
@@ -392,7 +392,7 @@
 mkUriLoc auth loc = URI (Strict.Just "https")
                    True
                    auth
-                   (V.fromList $ fmap T.pack $ splitOn "/" $ toFilePath $ locPath loc)
+                   (V.fromList $ fmap T.pack $ splitOn "/" $ show loc)
                    ( V.fromList $ map (\(l,r) ->
                        (T.pack l) Strict.:!:
                             (maybe Strict.Nothing (Strict.Just . T.pack) r))
@@ -404,7 +404,7 @@
 mkUriLocEmpty loc = URI Strict.Nothing
                    False
                    (URIAuth Strict.Nothing Localhost Strict.Nothing)
-                   (V.fromList $ fmap T.pack $ splitOn "/" $ toFilePath $ locPath loc)
+                   (V.fromList $ fmap T.pack $ splitOn "/" $ show loc)
                    ( V.fromList $ map (\(l,r) ->
                        (T.pack l) Strict.:!:
                             (maybe Strict.Nothing (Strict.Just . T.pack) r))
diff --git a/urlpath.cabal b/urlpath.cabal
--- a/urlpath.cabal
+++ b/urlpath.cabal
@@ -1,5 +1,5 @@
 Name:                   urlpath
-Version:                6.0.0
+Version:                6.0.1
 Author:                 Athan Clark <athan.clark@gmail.com>
 Maintainer:             Athan Clark <athan.clark@gmail.com>
 License:                MIT
