diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 1409671..5140754 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -432,9 +432,9 @@ delete_file (GFile *dir,
 	{
 		char *path;
 		
-		path = g_strconcat (g_file_get_path (dir), G_DIR_SEPARATOR_S,
-				    g_file_info_get_name (file_info),
-				    NULL);
+		path = g_build_filename (g_file_get_path (dir), 
+					 g_file_info_get_name (file_info),
+					 NULL);
 		if (g_unlink (path) < 0)
 		{
 			g_warning ("Unable to delete %s", path);
