--- template-functions-links.php.orig	2006-05-22 23:49:38.000000000 +0200
+++ template-functions-links.php	2006-05-22 23:49:44.000000000 +0200
@@ -70,11 +70,11 @@
 			date('H', $unixtime),
 			date('i', $unixtime),
 			date('s', $unixtime),
-			$post->post_name,
+			urlencode($post->post_name),
 			$post->ID,
 			$category,
 			$author,
-			$post->post_name,
+			urlencode($post->post_name),
 		);
 		return apply_filters('post_link', get_settings('home') . str_replace($rewritecode, $rewritereplace, $permalink), $post);
 	} else { // if they're not using the fancy permalink option

